/**
 * 前端数据字典
 * 1.企业行业类型字典 AreaOption
 * 2.国家省市二级联动字段 provinceAndCityData
 * 3.学历要求 educationOptions
 * 4.国内56个民族 nationData
 * 5.招聘学生类型（在校/应聘）studentType 0 在校 1 应届
 * 6.工作周期 workPeriod
 * 7.职位上下架状态 jobStatus 0 不限，1 发布中，2 暂停发布
 * 8.职位状态 jobHireStatus (string)：0 未发布，1 待审核，2 发布中，3 暂停发布, 4 驳回
 * 9.工作语言 workLanguage 0 中文 1 英文
 * 10. 简历投递的来源，resumeSource  0 不限、1 自主投递、2 平台推荐
 * 11. 简历状态（新），resumeStatus（投递过程的工单状态）
 *  0 投递成功，企业未查看简历、
 *  1 企业已查看投递记录、
 *  2 已发送面试邀约、
 *  3 学生已查看 、
 *  4 已拒绝面试邀约、
 *  5 已确认面试邀约、
 *  6 学生已反馈，企业未反馈、
 *  7 企业已反馈，学生未反馈、
 *  8 都反馈，结束
 * 12. 面试方式（多选），inviteWay 0 笔试，1 面试， 3 线上沟通
 * 13. 注意事项 attentionEvent 0 请带简历、1 请带学生证、2 请带学历证书、3 请带身份证、4 请带作品、5 请着正装
 * 14. 面试结果 inviteResultType 0 结果待定、1 面试通过、2 未通过、3 未赴约、4 已谢绝
 * 15. banner类型 bannerType 0 学生小程序端图片、1 小程序端视频、2 小程序跳转外链、3 学生PC端图片、4 学生PC端视频、5 学生PC端跳转链接、6 小程序跳转内部地址
 * 16. 学生认证状态 studentAuthStatus 0 默认状态， 1 认证通过， 2 认证驳回
 * 17. 企业上下架状态 companyStatus '-1' 启用（发布中）， '-2' 禁用（暂停发布）
 * 18. 招聘企业置顶状态(int) companyTopStatus 0 表示不置顶， 1 置顶
 * 19. 国际手机区号 nationPhoneNumber 
 * 20. 学生政治面貌 politicalList [
        "团员",
        "中共党员(含预备党员)",
        "民主党派",
        "无党派人士",
        "群众",
      ]
 **/
/**
 * @desc 企业行业类型字典
 */
export const AreaDict = [
  {
    name: "建筑/建材/工程",
    children: [
      "房地产",
      "建材",
      "建筑",
      "房地产开发",
      "物业",
      "装饰材料",
      "设计院",
      "检测",
      "房地产中介",
      "监理",
      "建筑设计",
      "消防",
      "路桥",
      "园林/园艺",
      "造价咨询",
      "地产策划",
      "测绘",
      "装修/装饰/装潢",
      "石材",
      "市政",
    ],
  },
  {
    name: "服装/纺织/皮革/箱包",
    children: [
      "服装/服饰",
      "纺织",
      "鞋业",
      "皮革",
      "鞋材",
      "箱包",
      "配饰",
      "服装厂",
      "针织",
      "印染",
      "服装设计",
      "女鞋",
      "童装",
      "家纺",
      "手袋",
      "服装辅料",
      "女装",
    ],
  },
  {
    name: "石油/化工/矿产/地质",
    children: [
      "塑料",
      "铝业",
      "涂料",
      "混凝土",
      "铜业",
      "橡胶",
      "石油",
      "润滑油",
      "地质",
      "化工/化学",
      "轮胎",
      "矿产",
      "钢铁",
      "水泥/水泥厂",
      "日化",
      "化肥/农药",
    ],
  },
  {
    name: "家具/家电/工艺品/玩具/珠宝",
    children: [
      "电器",
      "家具",
      "家电",
      "玩具",
      "空调",
      "厨具",
      "眼镜",
      "家电维修",
      "生活电器",
      "办公家具",
      "珠宝",
      "厨房电器",
      "工艺品",
      "首饰",
      "婴童用品",
    ],
  },
  {
    name: "专业服务(咨询、人力资源、财会)",
    children: [
      "咨询",
      "企业管理",
      "管理咨询",
      "人力资源",
      "企业服务",
      "家政",
      "翻译",
      "律师事务所/法律服务",
      "广告营销",
      "知识产权",
      "财税服务",
      "网站建设/技术外包",
    ],
  },
  {
    name: "快速消费品(食品、饮料、化妆品)",
    children: [
      "食品",
      "咖啡",
      "化妆品",
      "粮油",
      "饮料",
      "茶叶",
      "啤酒",
      "彩妆",
      "冷冻食品",
      "休闲食品/零食",
      "乳业",
      "红酒",
    ],
  },
  {
    name: "教育/培训/院校",
    children: [
      "学校",
      "幼儿园",
      "培训/培训机构/培训学校",
      "大学",
      "小学",
      "职业培训",
      "中学",
      "英语培训",
      "艺术培训",
      "托儿所/托管中心",
    ],
  },
  {
    name: "汽车及零配件",
    children: [
      "汽车",
      "汽车销售",
      "汽车配件",
      "汽车维修/汽车美容",
      "汽车用品",
      "电动车",
      "摩托车",
      "汽车系统",
      "汽车音响",
      "汽车生产/汽车制造",
    ],
  },
  {
    name: "电子技术/半导体/集成电路",
    children: [
      "电子厂/电子",
      "机电",
      "电气",
      "安防",
      "照明",
      "电源",
      "电池",
      "防雷",
      "开关",
    ],
  },
  {
    name: "机械/设备/重工",
    children: [
      "电梯",
      "机械制造",
      "模具",
      "铸造",
      "工程机械",
      "自动化",
      "木工机械",
      "阀门",
      "机床",
    ],
  },
  {
    name: "医疗/护理/卫生",
    children: [
      "医院",
      "制药/药业",
      "诊所/门诊部",
      "药房/药店",
      "医疗器械",
      "生物科技/生物工程",
      "卫生服务中心",
      "母婴护理",
      "医疗健康",
    ],
  },
  {
    name: "交通/运输/物流",
    children: [
      "物流/运输",
      "快递",
      "货运",
      "交通",
      "货运代理",
      "航空",
      "的士/出租车",
      "客运",
    ],
  },
  {
    name: "金融/投资/证券",
    children: [
      "保险",
      "投资/投资管理",
      "证券",
      "银行",
      "担保",
      "金融",
      "租赁",
      "基金",
    ],
  },
  {
    name: "家居/室内设计/装潢",
    children: ["家居", "门窗", "卫浴", "家居用品", "幕墙", "洁具", "室内设计"],
  },
  {
    name: "办公用品及设备/体育运动及设备",
    children: [
      "体育用品",
      "礼品",
      "运动用品",
      "健身器材",
      "文具",
      "办公设备/办公用品",
    ],
  },
  {
    name: "影视/媒体/艺术/文化传播",
    children: ["传媒", "文化传播", "摄影", "娱乐", "影视"],
  },
  {
    name: "原材料和加工",
    children: ["五金厂/五金", "陶瓷", "玻璃", "电线/电缆", "金属制品"],
  },
  {
    name: "农/林/牧/渔",
    children: ["农业", "木业", "宠物", "饲料", "水产"],
  },
  {
    name: "新能源",
    children: ["电力", "能源", "燃气", "水利", "太阳能"],
  },
  {
    name: "数码产品/电脑",
    children: [
      "数码相机/配件",
      "音箱/音响",
      "电脑/笔记本",
      "电脑配件/电脑外设",
    ],
  },
  {
    name: "通信/电信/网络设备",
    children: ["通信", "光电", "电信", "光学"],
  },
  {
    name: "互联网/电子商务",
    children: ["网络", "电子商务", "网络媒体", "游戏"],
  },
  {
    name: "酒店/旅游",
    children: ["酒店", "旅行社/旅游", "宾馆"],
  },
  {
    name: "环保",
    children: ["环保/节能", "清洁", "污水处理"],
  },
  {
    name: "广告",
    children: ["广告", "喷绘", "动漫"],
  },
  {
    name: "贸易/进出口",
    children: ["跨境电商/外贸", "进出口/国际贸易", "报关"],
  },
  {
    name: "公关/市场推广/会展",
    children: ["市场调查", "会展/展览", "图书"],
  },
  {
    name: "印刷/包装/造纸",
    children: ["印刷/包装", "造纸/造纸厂/纸业"],
  },
  {
    name: "生活服务",
    children: ["餐饮", "宠物店"],
  },
  {
    name: "美容/保健",
    children: ["美发", "保健品"],
  },
  {
    name: "计算机服务",
    children: ["软件", "计算机"],
  },
  {
    name: "医药",
    children: ["医药"],
  },
  {
    name: "学术/科研",
    children: ["研究院/研究所"],
  },
  {
    name: "智能设备",
    children: ["智能设备"],
  },
  {
    name: "批发/零售",
    children: ["零售"],
  },
];
export const AreaOption = AreaDict.map((item) => {
  return {
    value: item.name,
    label: item.name,
    children: item.children.map((iten) => {
      return {
        value: iten,
        label: iten,
      };
    }),
  };
});
// 省市联动数据
export const provinceAndCityData = [
  {
    value: "110000",
    label: "北京市",
    children: [
      {
        value: "110100",
        label: "北京市",
      },
    ],
  },
  {
    value: "120000",
    label: "天津市",
    children: [
      {
        value: "120100",
        label: "天津市",
      },
    ],
  },
  {
    value: "130000",
    label: "河北省",
    children: [
      {
        value: "130100",
        label: "石家庄市",
      },
      {
        value: "130200",
        label: "唐山市",
      },
      {
        value: "130300",
        label: "秦皇岛市",
      },
      {
        value: "130400",
        label: "邯郸市",
      },
      {
        value: "130500",
        label: "邢台市",
      },
      {
        value: "130600",
        label: "保定市",
      },
      {
        value: "130700",
        label: "张家口市",
      },
      {
        value: "130800",
        label: "承德市",
      },
      {
        value: "130900",
        label: "沧州市",
      },
      {
        value: "131000",
        label: "廊坊市",
      },
      {
        value: "131100",
        label: "衡水市",
      },
    ],
  },
  {
    value: "140000",
    label: "山西省",
    children: [
      {
        value: "140100",
        label: "太原市",
      },
      {
        value: "140200",
        label: "大同市",
      },
      {
        value: "140300",
        label: "阳泉市",
      },
      {
        value: "140400",
        label: "长治市",
      },
      {
        value: "140500",
        label: "晋城市",
      },
      {
        value: "140600",
        label: "朔州市",
      },
      {
        value: "140700",
        label: "晋中市",
      },
      {
        value: "140800",
        label: "运城市",
      },
      {
        value: "140900",
        label: "忻州市",
      },
      {
        value: "141000",
        label: "临汾市",
      },
      {
        value: "141100",
        label: "吕梁市",
      },
    ],
  },
  {
    value: "150000",
    label: "内蒙古自治区",
    children: [
      {
        value: "150100",
        label: "呼和浩特市",
      },
      {
        value: "150200",
        label: "包头市",
      },
      {
        value: "150300",
        label: "乌海市",
      },
      {
        value: "150400",
        label: "赤峰市",
      },
      {
        value: "150500",
        label: "通辽市",
      },
      {
        value: "150600",
        label: "鄂尔多斯市",
      },
      {
        value: "150700",
        label: "呼伦贝尔市",
      },
      {
        value: "150800",
        label: "巴彦淖尔市",
      },
      {
        value: "150900",
        label: "乌兰察布市",
      },
      {
        value: "152200",
        label: "兴安盟",
      },
      {
        value: "152500",
        label: "锡林郭勒盟",
      },
      {
        value: "152900",
        label: "阿拉善盟",
      },
    ],
  },
  {
    value: "210000",
    label: "辽宁省",
    children: [
      {
        value: "210100",
        label: "沈阳市",
      },
      {
        value: "210200",
        label: "大连市",
      },
      {
        value: "210300",
        label: "鞍山市",
      },
      {
        value: "210400",
        label: "抚顺市",
      },
      {
        value: "210500",
        label: "本溪市",
      },
      {
        value: "210600",
        label: "丹东市",
      },
      {
        value: "210700",
        label: "锦州市",
      },
      {
        value: "210800",
        label: "营口市",
      },
      {
        value: "210900",
        label: "阜新市",
      },
      {
        value: "211000",
        label: "辽阳市",
      },
      {
        value: "211100",
        label: "盘锦市",
      },
      {
        value: "211200",
        label: "铁岭市",
      },
      {
        value: "211300",
        label: "朝阳市",
      },
      {
        value: "211400",
        label: "葫芦岛市",
      },
    ],
  },
  {
    value: "220000",
    label: "吉林省",
    children: [
      {
        value: "220100",
        label: "长春市",
      },
      {
        value: "220200",
        label: "吉林市",
      },
      {
        value: "220300",
        label: "四平市",
      },
      {
        value: "220400",
        label: "辽源市",
      },
      {
        value: "220500",
        label: "通化市",
      },
      {
        value: "220600",
        label: "白山市",
      },
      {
        value: "220700",
        label: "松原市",
      },
      {
        value: "220800",
        label: "白城市",
      },
      {
        value: "222400",
        label: "延边朝鲜族自治州",
      },
    ],
  },
  {
    value: "230000",
    label: "黑龙江省",
    children: [
      {
        value: "230100",
        label: "哈尔滨市",
      },
      {
        value: "230200",
        label: "齐齐哈尔市",
      },
      {
        value: "230300",
        label: "鸡西市",
      },
      {
        value: "230400",
        label: "鹤岗市",
      },
      {
        value: "230500",
        label: "双鸭山市",
      },
      {
        value: "230600",
        label: "大庆市",
      },
      {
        value: "230700",
        label: "伊春市",
      },
      {
        value: "230800",
        label: "佳木斯市",
      },
      {
        value: "230900",
        label: "七台河市",
      },
      {
        value: "231000",
        label: "牡丹江市",
      },
      {
        value: "231100",
        label: "黑河市",
      },
      {
        value: "231200",
        label: "绥化市",
      },
      {
        value: "232700",
        label: "大兴安岭地区",
      },
    ],
  },
  {
    value: "310000",
    label: "上海市",
    children: [
      {
        value: "310100",
        label: "上海市",
      },
    ],
  },
  {
    value: "320000",
    label: "江苏省",
    children: [
      {
        value: "320100",
        label: "南京市",
      },
      {
        value: "320200",
        label: "无锡市",
      },
      {
        value: "320300",
        label: "徐州市",
      },
      {
        value: "320400",
        label: "常州市",
      },
      {
        value: "320500",
        label: "苏州市",
      },
      {
        value: "320600",
        label: "南通市",
      },
      {
        value: "320700",
        label: "连云港市",
      },
      {
        value: "320800",
        label: "淮安市",
      },
      {
        value: "320900",
        label: "盐城市",
      },
      {
        value: "321000",
        label: "扬州市",
      },
      {
        value: "321100",
        label: "镇江市",
      },
      {
        value: "321200",
        label: "泰州市",
      },
      {
        value: "321300",
        label: "宿迁市",
      },
    ],
  },
  {
    value: "330000",
    label: "浙江省",
    children: [
      {
        value: "330100",
        label: "杭州市",
      },
      {
        value: "330200",
        label: "宁波市",
      },
      {
        value: "330300",
        label: "温州市",
      },
      {
        value: "330400",
        label: "嘉兴市",
      },
      {
        value: "330500",
        label: "湖州市",
      },
      {
        value: "330600",
        label: "绍兴市",
      },
      {
        value: "330700",
        label: "金华市",
      },
      {
        value: "330800",
        label: "衢州市",
      },
      {
        value: "330900",
        label: "舟山市",
      },
      {
        value: "331000",
        label: "台州市",
      },
      {
        value: "331100",
        label: "丽水市",
      },
    ],
  },
  {
    value: "340000",
    label: "安徽省",
    children: [
      {
        value: "340100",
        label: "合肥市",
      },
      {
        value: "340200",
        label: "芜湖市",
      },
      {
        value: "340300",
        label: "蚌埠市",
      },
      {
        value: "340400",
        label: "淮南市",
      },
      {
        value: "340500",
        label: "马鞍山市",
      },
      {
        value: "340600",
        label: "淮北市",
      },
      {
        value: "340700",
        label: "铜陵市",
      },
      {
        value: "340800",
        label: "安庆市",
      },
      {
        value: "341000",
        label: "黄山市",
      },
      {
        value: "341100",
        label: "滁州市",
      },
      {
        value: "341200",
        label: "阜阳市",
      },
      {
        value: "341300",
        label: "宿州市",
      },
      {
        value: "341500",
        label: "六安市",
      },
      {
        value: "341600",
        label: "亳州市",
      },
      {
        value: "341700",
        label: "池州市",
      },
      {
        value: "341800",
        label: "宣城市",
      },
    ],
  },
  {
    value: "350000",
    label: "福建省",
    children: [
      {
        value: "350100",
        label: "福州市",
      },
      {
        value: "350200",
        label: "厦门市",
      },
      {
        value: "350300",
        label: "莆田市",
      },
      {
        value: "350400",
        label: "三明市",
      },
      {
        value: "350500",
        label: "泉州市",
      },
      {
        value: "350600",
        label: "漳州市",
      },
      {
        value: "350700",
        label: "南平市",
      },
      {
        value: "350800",
        label: "龙岩市",
      },
      {
        value: "350900",
        label: "宁德市",
      },
    ],
  },
  {
    value: "360000",
    label: "江西省",
    children: [
      {
        value: "360100",
        label: "南昌市",
      },
      {
        value: "360200",
        label: "景德镇市",
      },
      {
        value: "360300",
        label: "萍乡市",
      },
      {
        value: "360400",
        label: "九江市",
      },
      {
        value: "360500",
        label: "新余市",
      },
      {
        value: "360600",
        label: "鹰潭市",
      },
      {
        value: "360700",
        label: "赣州市",
      },
      {
        value: "360800",
        label: "吉安市",
      },
      {
        value: "360900",
        label: "宜春市",
      },
      {
        value: "361000",
        label: "抚州市",
      },
      {
        value: "361100",
        label: "上饶市",
      },
    ],
  },
  {
    value: "370000",
    label: "山东省",
    children: [
      {
        value: "370100",
        label: "济南市",
      },
      {
        value: "370200",
        label: "青岛市",
      },
      {
        value: "370300",
        label: "淄博市",
      },
      {
        value: "370400",
        label: "枣庄市",
      },
      {
        value: "370500",
        label: "东营市",
      },
      {
        value: "370600",
        label: "烟台市",
      },
      {
        value: "370700",
        label: "潍坊市",
      },
      {
        value: "370800",
        label: "济宁市",
      },
      {
        value: "370900",
        label: "泰安市",
      },
      {
        value: "371000",
        label: "威海市",
      },
      {
        value: "371100",
        label: "日照市",
      },
      {
        value: "371300",
        label: "临沂市",
      },
      {
        value: "371400",
        label: "德州市",
      },
      {
        value: "371500",
        label: "聊城市",
      },
      {
        value: "371600",
        label: "滨州市",
      },
      {
        value: "371700",
        label: "菏泽市",
      },
    ],
  },
  {
    value: "410000",
    label: "河南省",
    children: [
      {
        value: "410100",
        label: "郑州市",
      },
      {
        value: "410200",
        label: "开封市",
      },
      {
        value: "410300",
        label: "洛阳市",
      },
      {
        value: "410400",
        label: "平顶山市",
      },
      {
        value: "410500",
        label: "安阳市",
      },
      {
        value: "410600",
        label: "鹤壁市",
      },
      {
        value: "410700",
        label: "新乡市",
      },
      {
        value: "410800",
        label: "焦作市",
      },
      {
        value: "410900",
        label: "濮阳市",
      },
      {
        value: "411000",
        label: "许昌市",
      },
      {
        value: "411100",
        label: "漯河市",
      },
      {
        value: "411200",
        label: "三门峡市",
      },
      {
        value: "411300",
        label: "南阳市",
      },
      {
        value: "411400",
        label: "商丘市",
      },
      {
        value: "411500",
        label: "信阳市",
      },
      {
        value: "411600",
        label: "周口市",
      },
      {
        value: "411700",
        label: "驻马店市",
      },
      {
        value: "419000",
        label: "省直辖县级行政区划",
      },
    ],
  },
  {
    value: "420000",
    label: "湖北省",
    children: [
      {
        value: "420100",
        label: "武汉市",
      },
      {
        value: "420200",
        label: "黄石市",
      },
      {
        value: "420300",
        label: "十堰市",
      },
      {
        value: "420500",
        label: "宜昌市",
      },
      {
        value: "420600",
        label: "襄阳市",
      },
      {
        value: "420700",
        label: "鄂州市",
      },
      {
        value: "420800",
        label: "荆门市",
      },
      {
        value: "420900",
        label: "孝感市",
      },
      {
        value: "421000",
        label: "荆州市",
      },
      {
        value: "421100",
        label: "黄冈市",
      },
      {
        value: "421200",
        label: "咸宁市",
      },
      {
        value: "421300",
        label: "随州市",
      },
      {
        value: "422800",
        label: "恩施土家族苗族自治州",
      },
      {
        value: "429000",
        label: "省直辖县级行政区划",
      },
    ],
  },
  {
    value: "430000",
    label: "湖南省",
    children: [
      {
        value: "430100",
        label: "长沙市",
      },
      {
        value: "430200",
        label: "株洲市",
      },
      {
        value: "430300",
        label: "湘潭市",
      },
      {
        value: "430400",
        label: "衡阳市",
      },
      {
        value: "430500",
        label: "邵阳市",
      },
      {
        value: "430600",
        label: "岳阳市",
      },
      {
        value: "430700",
        label: "常德市",
      },
      {
        value: "430800",
        label: "张家界市",
      },
      {
        value: "430900",
        label: "益阳市",
      },
      {
        value: "431000",
        label: "郴州市",
      },
      {
        value: "431100",
        label: "永州市",
      },
      {
        value: "431200",
        label: "怀化市",
      },
      {
        value: "431300",
        label: "娄底市",
      },
      {
        value: "433100",
        label: "湘西土家族苗族自治州",
      },
    ],
  },
  {
    value: "440000",
    label: "广东省",
    children: [
      {
        value: "440100",
        label: "广州市",
      },
      {
        value: "440200",
        label: "韶关市",
      },
      {
        value: "440300",
        label: "深圳市",
      },
      {
        value: "440400",
        label: "珠海市",
      },
      {
        value: "440500",
        label: "汕头市",
      },
      {
        value: "440600",
        label: "佛山市",
      },
      {
        value: "440700",
        label: "江门市",
      },
      {
        value: "440800",
        label: "湛江市",
      },
      {
        value: "440900",
        label: "茂名市",
      },
      {
        value: "441200",
        label: "肇庆市",
      },
      {
        value: "441300",
        label: "惠州市",
      },
      {
        value: "441400",
        label: "梅州市",
      },
      {
        value: "441500",
        label: "汕尾市",
      },
      {
        value: "441600",
        label: "河源市",
      },
      {
        value: "441700",
        label: "阳江市",
      },
      {
        value: "441800",
        label: "清远市",
      },
      {
        value: "441900",
        label: "东莞市",
      },
      {
        value: "442000",
        label: "中山市",
      },
      {
        value: "445100",
        label: "潮州市",
      },
      {
        value: "445200",
        label: "揭阳市",
      },
      {
        value: "445300",
        label: "云浮市",
      },
    ],
  },
  {
    value: "450000",
    label: "广西壮族自治区",
    children: [
      {
        value: "450100",
        label: "南宁市",
      },
      {
        value: "450200",
        label: "柳州市",
      },
      {
        value: "450300",
        label: "桂林市",
      },
      {
        value: "450400",
        label: "梧州市",
      },
      {
        value: "450500",
        label: "北海市",
      },
      {
        value: "450600",
        label: "防城港市",
      },
      {
        value: "450700",
        label: "钦州市",
      },
      {
        value: "450800",
        label: "贵港市",
      },
      {
        value: "450900",
        label: "玉林市",
      },
      {
        value: "451000",
        label: "百色市",
      },
      {
        value: "451100",
        label: "贺州市",
      },
      {
        value: "451200",
        label: "河池市",
      },
      {
        value: "451300",
        label: "来宾市",
      },
      {
        value: "451400",
        label: "崇左市",
      },
    ],
  },
  {
    value: "460000",
    label: "海南省",
    children: [
      {
        value: "460100",
        label: "海口市",
      },
      {
        value: "460200",
        label: "三亚市",
      },
      {
        value: "460300",
        label: "三沙市",
      },
      {
        value: "460400",
        label: "儋州市",
      },
      {
        value: "469000",
        label: "省直辖县级行政区划",
      },
    ],
  },
  {
    value: "500000",
    label: "重庆市",
    children: [
      {
        value: "500100",
        label: "重庆市",
      },
    ],
  },
  {
    value: "510000",
    label: "四川省",
    children: [
      {
        value: "510100",
        label: "成都市",
      },
      {
        value: "510300",
        label: "自贡市",
      },
      {
        value: "510400",
        label: "攀枝花市",
      },
      {
        value: "510500",
        label: "泸州市",
      },
      {
        value: "510600",
        label: "德阳市",
      },
      {
        value: "510700",
        label: "绵阳市",
      },
      {
        value: "510800",
        label: "广元市",
      },
      {
        value: "510900",
        label: "遂宁市",
      },
      {
        value: "511000",
        label: "内江市",
      },
      {
        value: "511100",
        label: "乐山市",
      },
      {
        value: "511300",
        label: "南充市",
      },
      {
        value: "511400",
        label: "眉山市",
      },
      {
        value: "511500",
        label: "宜宾市",
      },
      {
        value: "511600",
        label: "广安市",
      },
      {
        value: "511700",
        label: "达州市",
      },
      {
        value: "511800",
        label: "雅安市",
      },
      {
        value: "511900",
        label: "巴中市",
      },
      {
        value: "512000",
        label: "资阳市",
      },
      {
        value: "513200",
        label: "阿坝藏族羌族自治州",
      },
      {
        value: "513300",
        label: "甘孜藏族自治州",
      },
      {
        value: "513400",
        label: "凉山彝族自治州",
      },
    ],
  },
  {
    value: "520000",
    label: "贵州省",
    children: [
      {
        value: "520100",
        label: "贵阳市",
      },
      {
        value: "520200",
        label: "六盘水市",
      },
      {
        value: "520300",
        label: "遵义市",
      },
      {
        value: "520400",
        label: "安顺市",
      },
      {
        value: "520500",
        label: "毕节市",
      },
      {
        value: "520600",
        label: "铜仁市",
      },
      {
        value: "522300",
        label: "黔西南布依族苗族自治州",
      },
      {
        value: "522600",
        label: "黔东南苗族侗族自治州",
      },
      {
        value: "522700",
        label: "黔南布依族苗族自治州",
      },
    ],
  },
  {
    value: "530000",
    label: "云南省",
    children: [
      {
        value: "530100",
        label: "昆明市",
      },
      {
        value: "530300",
        label: "曲靖市",
      },
      {
        value: "530400",
        label: "玉溪市",
      },
      {
        value: "530500",
        label: "保山市",
      },
      {
        value: "530600",
        label: "昭通市",
      },
      {
        value: "530700",
        label: "丽江市",
      },
      {
        value: "530800",
        label: "普洱市",
      },
      {
        value: "530900",
        label: "临沧市",
      },
      {
        value: "532300",
        label: "楚雄彝族自治州",
      },
      {
        value: "532500",
        label: "红河哈尼族彝族自治州",
      },
      {
        value: "532600",
        label: "文山壮族苗族自治州",
      },
      {
        value: "532800",
        label: "西双版纳傣族自治州",
      },
      {
        value: "532900",
        label: "大理白族自治州",
      },
      {
        value: "533100",
        label: "德宏傣族景颇族自治州",
      },
      {
        value: "533300",
        label: "怒江傈僳族自治州",
      },
      {
        value: "533400",
        label: "迪庆藏族自治州",
      },
    ],
  },
  {
    value: "540000",
    label: "西藏自治区",
    children: [
      {
        value: "540100",
        label: "拉萨市",
      },
      {
        value: "540200",
        label: "日喀则市",
      },
      {
        value: "540300",
        label: "昌都市",
      },
      {
        value: "540400",
        label: "林芝市",
      },
      {
        value: "540500",
        label: "山南市",
      },
      {
        value: "540600",
        label: "那曲市",
      },
      {
        value: "542500",
        label: "阿里地区",
      },
    ],
  },
  {
    value: "610000",
    label: "陕西省",
    children: [
      {
        value: "610100",
        label: "西安市",
      },
      {
        value: "610200",
        label: "铜川市",
      },
      {
        value: "610300",
        label: "宝鸡市",
      },
      {
        value: "610400",
        label: "咸阳市",
      },
      {
        value: "610500",
        label: "渭南市",
      },
      {
        value: "610600",
        label: "延安市",
      },
      {
        value: "610700",
        label: "汉中市",
      },
      {
        value: "610800",
        label: "榆林市",
      },
      {
        value: "610900",
        label: "安康市",
      },
      {
        value: "611000",
        label: "商洛市",
      },
    ],
  },
  {
    value: "620000",
    label: "甘肃省",
    children: [
      {
        value: "620100",
        label: "兰州市",
      },
      {
        value: "620200",
        label: "嘉峪关市",
      },
      {
        value: "620300",
        label: "金昌市",
      },
      {
        value: "620400",
        label: "白银市",
      },
      {
        value: "620500",
        label: "天水市",
      },
      {
        value: "620600",
        label: "武威市",
      },
      {
        value: "620700",
        label: "张掖市",
      },
      {
        value: "620800",
        label: "平凉市",
      },
      {
        value: "620900",
        label: "酒泉市",
      },
      {
        value: "621000",
        label: "庆阳市",
      },
      {
        value: "621100",
        label: "定西市",
      },
      {
        value: "621200",
        label: "陇南市",
      },
      {
        value: "622900",
        label: "临夏回族自治州",
      },
      {
        value: "623000",
        label: "甘南藏族自治州",
      },
    ],
  },
  {
    value: "630000",
    label: "青海省",
    children: [
      {
        value: "630100",
        label: "西宁市",
      },
      {
        value: "630200",
        label: "海东市",
      },
      {
        value: "632200",
        label: "海北藏族自治州",
      },
      {
        value: "632300",
        label: "黄南藏族自治州",
      },
      {
        value: "632500",
        label: "海南藏族自治州",
      },
      {
        value: "632600",
        label: "果洛藏族自治州",
      },
      {
        value: "632700",
        label: "玉树藏族自治州",
      },
      {
        value: "632800",
        label: "海西蒙古族藏族自治州",
      },
    ],
  },
  {
    value: "640000",
    label: "宁夏回族自治区",
    children: [
      {
        value: "640100",
        label: "银川市",
      },
      {
        value: "640200",
        label: "石嘴山市",
      },
      {
        value: "640300",
        label: "吴忠市",
      },
      {
        value: "640400",
        label: "固原市",
      },
      {
        value: "640500",
        label: "中卫市",
      },
    ],
  },
  {
    value: "650000",
    label: "新疆维吾尔自治区",
    children: [
      {
        value: "650100",
        label: "乌鲁木齐市",
      },
      {
        value: "650200",
        label: "克拉玛依市",
      },
      {
        value: "650400",
        label: "吐鲁番市",
      },
      {
        value: "650500",
        label: "哈密市",
      },
      {
        value: "652300",
        label: "昌吉回族自治州",
      },
      {
        value: "652700",
        label: "博尔塔拉蒙古自治州",
      },
      {
        value: "652800",
        label: "巴音郭楞蒙古自治州",
      },
      {
        value: "652900",
        label: "阿克苏地区",
      },
      {
        value: "653000",
        label: "克孜勒苏柯尔克孜自治州",
      },
      {
        value: "653100",
        label: "喀什地区",
      },
      {
        value: "653200",
        label: "和田地区",
      },
      {
        value: "654000",
        label: "伊犁哈萨克自治州",
      },
      {
        value: "654200",
        label: "塔城地区",
      },
      {
        value: "654300",
        label: "阿勒泰地区",
      },
      {
        value: "659000",
        label: "自治区直辖县级行政区划",
      },
    ],
  },
  {
    value: "710000",
    label: "台湾省",
    children: [
      {
        value: "710100",
        label: "台北市",
      },
      {
        value: "710200",
        label: "高雄市",
      },
      {
        value: "710300",
        label: "基隆市",
      },
      {
        value: "710400",
        label: "台中市",
      },
      {
        value: "710500",
        label: "台南市",
      },
      {
        value: "710600",
        label: "新竹市",
      },
      {
        value: "710700",
        label: "嘉义市",
      },
    ],
  },
  {
    value: "810000",
    label: "香港特别行政区",
    children: [
      {
        value: "810001",
        label: "中西區",
      },
      {
        value: "810002",
        label: "灣仔區",
      },
      {
        value: "810003",
        label: "東區",
      },
      {
        value: "810004",
        label: "南區",
      },
      {
        value: "810005",
        label: "油尖旺區",
      },
      {
        value: "810006",
        label: "深水埗區",
      },
      {
        value: "810007",
        label: "九龍城區",
      },
      {
        value: "810008",
        label: "黃大仙區",
      },
      {
        value: "810009",
        label: "觀塘區",
      },
      {
        value: "810010",
        label: "荃灣區",
      },
      {
        value: "810011",
        label: "屯門區",
      },
      {
        value: "810012",
        label: "元朗區",
      },
      {
        value: "810013",
        label: "北區",
      },
      {
        value: "810014",
        label: "大埔區",
      },
      {
        value: "810015",
        label: "西貢區",
      },
      {
        value: "810016",
        label: "沙田區",
      },
      {
        value: "810017",
        label: "葵青區",
      },
      {
        value: "810018",
        label: "離島區",
      },
    ],
  },
  {
    value: "820000",
    label: "澳门特别行政区",
    children: [
      {
        value: "820001",
        label: "花地瑪堂區",
      },
      {
        value: "820002",
        label: "花王堂區",
      },
      {
        value: "820003",
        label: "望德堂區",
      },
      {
        value: "820004",
        label: "大堂區",
      },
      {
        value: "820005",
        label: "風順堂區",
      },
      {
        value: "820006",
        label: "嘉模堂區",
      },
      {
        value: "820007",
        label: "路氹填海區",
      },
      {
        value: "820008",
        label: "聖方濟各堂區",
      },
    ],
  },
];
// 学历要求
export const educationOptions = [
  {
    label: "不限",
    value: 0,
  },
  {
    label: "大专",
    value: 1,
    children: [
      {
        label: "大一",
        value: 2,
      },
      {
        label: "大二",
        value: 3,
      },
      {
        label: "大三",
        value: 4,
      },
    ],
  },
  {
    label: "本科",
    value: 5,
    children: [
      {
        label: "大一",
        value: 6,
      },
      {
        label: "大二",
        value: 7,
      },
      {
        label: "大三",
        value: 8,
      },
      {
        label: "大四",
        value: 9,
      },
    ],
  },
  {
    label: "硕士",
    value: 10,
    children: [
      {
        label: "研一",
        value: 11,
      },
      {
        label: "研二",
        value: 12,
      },
      {
        label: "研三",
        value: 13,
      },
    ],
  },
  {
    label: "博士",
    value: 14,
    children: [
      {
        label: "博士",
        value: 15,
      },
    ],
  },
];
// 国内56个民族
export const nationData = [
  "汉族",
  "蒙古族",
  "回族",
  "藏族",
  "维吾尔族",
  "苗族",
  "彝族",
  "壮族",
  "布依族",
  "朝鲜族",
  "满族",
  "侗族",
  "瑶族",
  "白族",
  "土家族",
  "哈尼族",
  "哈萨克族",
  "傣族",
  "黎族",
  "傈僳族",
  "佤族",
  "畲族",
  "高山族",
  "拉祜族",
  "水族",
  "东乡族",
  "纳西族",
  "景颇族",
  "柯尔克孜族",
  "土族",
  "达斡尔族",
  "仫佬族",
  "羌族",
  "布朗族",
  "撒拉族",
  "毛南族",
  "仡佬族",
  "锡伯族",
  "阿昌族",
  "普米族",
  "塔吉克族",
  "怒族",
  "乌孜别克族",
  "俄罗斯族",
  "鄂温克族",
  "德昂族",
  "保安族",
  "裕固族",
  "京族",
  "塔塔尔族",
  "独龙族",
  "鄂伦春族",
  "赫哲族",
  "门巴族",
  "珞巴族",
  "基诺族",
  "其他"
];
// 招聘学生类型（在校/应聘）
export const studentType = [
  {
    label: "在校",
    value: "0",
  },
  {
    label: "应届",
    value: "1",
  },
];
// 工作周期
export const workPeriod = [
  {
    label: "1天/周",
    value: "0",
  },
  {
    label: "2天/周",
    value: "1",
  },
  {
    label: "3天/周",
    value: "2",
  },
  {
    label: "4天/周",
    value: "3",
  },
  {
    label: "5天/周",
    value: "4",
  },
  {
    label: "6天/周",
    value: "5",
  },
  {
    label: "7天/周",
    value: "6",
  },
];
// 职位上下架状态 jobStatus
export const jobStatus = [
  {
    label: "不限",
    value: "0",
  },
  {
    label: "发布中",
    value: "1",
  },
  {
    label: "暂停发布",
    value: "2",
  },
];
//  职位状态
export const jobHireStatus = {
  0: "未发布",
  1: "待审核",
  2: "发布中",
  3: "暂停发布",
  4: "驳回",
};
// 工作语言
export const workLanguage = [
  {
    label: "其他",
    value: "0",
  },
  {
    label: "中文",
    value: "1",
  },
  {
    label: "英文",
    value: "2",
  },
];
// 简历来源类型
export const resumeSource = [
  {
    label: "不限",
    value: "0",
  },
  {
    label: "自主投递",
    value: "1",
  },
  {
    label: "平台推荐",
    value: "2",
  },
];
/**
 * 11. 投递记录的简历状态 （新），resumeStatus（投递过程的工单状态）
 *  0 投递成功，企业未查看简历、
 *  1 企业已查看投递记录、
 *  2 已发送面试邀约、
 *  3 学生已查看 、
 *  4 已拒绝面试邀约、
 *  5 已确认面试邀约、
 *  6 学生已反馈，企业未反馈、
 *  7 企业已反馈，学生未反馈、
 *  8 都反馈，结束
 */
export const resumeStatus = [
  {
    label: "未查看简历",
    value: "0",
  },
  {
    label: "已查看简历",
    value: "1",
  },
  {
    label: "已发送面试邀约",
    value: "2",
  },
  {
    label: "学生已查看邀约",
    value: "3",
  },
  {
    label: "学生已拒绝邀约",
    value: "4",
  },
  {
    label: "学生已确认邀约",
    value: "5",
  },
  {
    label: "学生已反馈，企业未反馈",
    value: "6",
  },
  {
    label: "企业已反馈，学生未反馈",
    value: "7",
  },
  {
    label: "已全部反馈",
    value: "8",
  },
];
// 面试方式（多选），inviteWay 0 笔试，1 面试， 2 线上沟通
export const inviteWay = [
  {
    label: "笔试",
    value: "0",
  },
  {
    label: "面试",
    value: "1",
  },
  {
    label: "线上沟通",
    value: "2",
  },
];
// 注意事项 0 请带简历、1 请带学生证、2 请带学历证书、3 请带身份证、4 请带作品、5 请着正装
export const attentionEvent = [
  {
    label: "请带简历",
    value: "0",
  },
  {
    label: "请带学生证",
    value: "1",
  },
  {
    label: "请带学历证书",
    value: "2",
  },
  {
    label: "请带身份证",
    value: "3",
  },
  {
    label: "请带作品",
    value: "4",
  },
  {
    label: "请着正装",
    value: "5",
  },
];
// 面试结果 inviteResultType 0 结果待定、1 面试通过、2 未通过、3 未赴约、4 已谢绝
export const inviteResultType = [
  {
    label: "结果待定",
    value: "0",
  },
  {
    label: "面试通过",
    value: "1",
  },
  {
    label: "未通过",
    value: "2",
  },
  {
    label: "未赴约",
    value: "3",
  },
  {
    label: "已谢绝",
    value: "4",
  },
];

export const getNationData = () => {
  let newData = [];
  nationData.forEach((v, i) => {
    newData.push({ value: v, label: v });
  });
  return newData;
};

export const getAreaDict = () => {
  //转换数据格式
  let newArr = [];
  AreaDict.forEach((v, i) => {
    let obj = {};
    obj.label = v.name;
    obj.value = v.name;
    obj.children = [];
    v.children.forEach((vv) => {
      obj.children.push({ label: vv, value: vv });
    });
    newArr.push(obj);
  });
  return newArr;
};

export const getProvinceAndCityDataLabel = (valueArr, type = 1) => {
  //通过地址的ID获取地址名（传参）
  let label = "",
    childrenLabel = "";
  provinceAndCityData.forEach((v) => {
    if (v.value == valueArr[0]) {
      label = v.label;
      childrenLabel =
        v.children.filter((vv) => vv.value == valueArr[1])[0].label || "";
    }
  });
  return type == 1 ? childrenLabel : label + childrenLabel;
};

export const getProvinceAndCityDataValue = (labelStr) => {
  //通过地址名获取地址的ID（回显）
  if (!labelStr) return;
  let if1 = labelStr.split("省"),
    if2 = labelStr.split("区"),
    if3 = labelStr.split("市");
  let valueArr = [];
  provinceAndCityData.forEach((v) => {
    let value = labelStr;
    if (if1.length == 2) {
      //区分正常的省市结构（如广东省深圳市）
      value = if1[1];
    } else if (if2.length == 2) {
      //区分自治州的省市结构（如广西壮族自治区南宁市）
      value = if2[1];
    } else if (if3.length == 3) {
      //区分直辖市市结构（如上海市上海市）
      value = if3[1] + "市";
    }
    v.children.forEach((vv) => {
      if (vv.label == value) {
        valueArr.push(v.value);
        valueArr.push(vv.value);
      }
    });
  });
  return valueArr;
};
// 国际手机区号
export const nationPhoneNumber = [
  {
    english_name: "Andorra",
    chinese_name: "安道尔",
    country_code: "AD",
    phone_code: "376",
  },
  {
    english_name: "United Arab Emirates",
    chinese_name: "阿拉伯联合酋长国",
    country_code: "AE",
    phone_code: "971",
  },
  {
    english_name: "Afghanistan",
    chinese_name: "阿富汗",
    country_code: "AF",
    phone_code: "93",
  },
  {
    english_name: "Antigua and Barbuda",
    chinese_name: "安提瓜和巴布达",
    country_code: "AG",
    phone_code: "1268",
  },
  {
    english_name: "Anguilla",
    chinese_name: "安圭拉",
    country_code: "AI",
    phone_code: "1264",
  },
  {
    english_name: "Albania",
    chinese_name: "阿尔巴尼亚",
    country_code: "AL",
    phone_code: "355",
  },
  {
    english_name: "Armenia",
    chinese_name: "亚美尼亚",
    country_code: "AM",
    phone_code: "374",
  },
  {
    english_name: "Angola",
    chinese_name: "安哥拉",
    country_code: "AO",
    phone_code: "244",
  },
  {
    english_name: "Argentina",
    chinese_name: "阿根廷",
    country_code: "AR",
    phone_code: "54",
  },
  {
    english_name: "American Samoa",
    chinese_name: "美属萨摩亚",
    country_code: "AS",
    phone_code: "1684",
  },
  {
    english_name: "Austria",
    chinese_name: "奥地利",
    country_code: "AT",
    phone_code: "43",
  },
  {
    english_name: "Australia",
    chinese_name: "澳大利亚",
    country_code: "AU",
    phone_code: "61",
  },
  {
    english_name: "Aruba",
    chinese_name: "阿鲁巴",
    country_code: "AW",
    phone_code: "297",
  },
  {
    english_name: "Azerbaijan",
    chinese_name: "阿塞拜疆",
    country_code: "AZ",
    phone_code: "994",
  },
  {
    english_name: "Bosniaand Herzegovina",
    chinese_name: "波斯尼亚和黑塞哥维那",
    country_code: "BA",
    phone_code: "387",
  },
  {
    english_name: "Barbados",
    chinese_name: "巴巴多斯",
    country_code: "BB",
    phone_code: "1246",
  },
  {
    english_name: "Bangladesh",
    chinese_name: "孟加拉国",
    country_code: "BD",
    phone_code: "880",
  },
  {
    english_name: "Belgium",
    chinese_name: "比利时",
    country_code: "BE",
    phone_code: "32",
  },
  {
    english_name: "Burkina Faso",
    chinese_name: "布基纳法索",
    country_code: "BF",
    phone_code: "226",
  },
  {
    english_name: "Bulgaria",
    chinese_name: "保加利亚",
    country_code: "BG",
    phone_code: "359",
  },
  {
    english_name: "Bahrain",
    chinese_name: "巴林",
    country_code: "BH",
    phone_code: "973",
  },
  {
    english_name: "Burundi",
    chinese_name: "布隆迪",
    country_code: "BI",
    phone_code: "257",
  },
  {
    english_name: "Benin",
    chinese_name: "贝宁",
    country_code: "BJ",
    phone_code: "229",
  },
  {
    english_name: "Bermuda",
    chinese_name: "百慕大群岛",
    country_code: "BM",
    phone_code: "1441",
  },
  {
    english_name: "Brunei",
    chinese_name: "文莱",
    country_code: "BN",
    phone_code: "673",
  },
  {
    english_name: "Bolivia",
    chinese_name: "玻利维亚",
    country_code: "BO",
    phone_code: "591",
  },
  {
    english_name: "Caribisch Nederland",
    chinese_name: "荷兰加勒比",
    country_code: "BQ",
    phone_code: "599",
  },
  {
    english_name: "Brazil",
    chinese_name: "巴西",
    country_code: "BR",
    phone_code: "55",
  },
  {
    english_name: "Bahamas",
    chinese_name: "巴哈马",
    country_code: "BS",
    phone_code: "1242",
  },
  {
    english_name: "Bhutan",
    chinese_name: "不丹",
    country_code: "BT",
    phone_code: "975",
  },
  {
    english_name: "Botswana",
    chinese_name: "博茨瓦纳",
    country_code: "BW",
    phone_code: "267",
  },
  {
    english_name: "Belarus",
    chinese_name: "白俄罗斯",
    country_code: "BY",
    phone_code: "375",
  },
  {
    english_name: "Belize",
    chinese_name: "伯利兹",
    country_code: "BZ",
    phone_code: "501",
  },
  {
    english_name: "Canada",
    chinese_name: "加拿大",
    country_code: "CA",
    phone_code: "1",
  },
  {
    english_name: "Democratic Republic of theCongo",
    chinese_name: "刚果民主共和国",
    country_code: "CD",
    phone_code: "243",
  },
  {
    english_name: "Central African Republic",
    chinese_name: "中非共和国",
    country_code: "CF",
    phone_code: "236",
  },
  {
    english_name: "Republic Of The Congo",
    chinese_name: "刚果共和国",
    country_code: "CG",
    phone_code: "242",
  },
  {
    english_name: "Switzerland",
    chinese_name: "瑞士",
    country_code: "CH",
    phone_code: "41",
  },
  {
    english_name: "Ivory Coast",
    chinese_name: "象牙海岸",
    country_code: "CI",
    phone_code: "225",
  },
  {
    english_name: "Cook Islands",
    chinese_name: "库克群岛",
    country_code: "CK",
    phone_code: "682",
  },
  {
    english_name: "Chile",
    chinese_name: "智利",
    country_code: "CL",
    phone_code: "56",
  },
  {
    english_name: "Cameroon",
    chinese_name: "喀麦隆",
    country_code: "CM",
    phone_code: "237",
  },
  {
    english_name: "China",
    chinese_name: "中国",
    country_code: "CN",
    phone_code: "86",
  },
  {
    english_name: "Colombia",
    chinese_name: "哥伦比亚",
    country_code: "CO",
    phone_code: "57",
  },
  {
    english_name: "CostaRica",
    chinese_name: "哥斯达黎加",
    country_code: "CR",
    phone_code: "506",
  },
  {
    english_name: "Cuba",
    chinese_name: "古巴",
    country_code: "CU",
    phone_code: "53",
  },
  {
    english_name: "Cape Verde",
    chinese_name: "开普",
    country_code: "CV",
    phone_code: "238",
  },
  {
    english_name: "Curacao",
    chinese_name: "库拉索",
    country_code: "CW",
    phone_code: "599",
  },
  {
    english_name: "Cyprus",
    chinese_name: "塞浦路斯",
    country_code: "CY",
    phone_code: "357",
  },
  {
    english_name: "Czech",
    chinese_name: "捷克",
    country_code: "CZ",
    phone_code: "420",
  },
  {
    english_name: "Germany",
    chinese_name: "德国",
    country_code: "DE",
    phone_code: "49",
  },
  {
    english_name: "Djibouti",
    chinese_name: "吉布提",
    country_code: "DJ",
    phone_code: "253",
  },
  {
    english_name: "Denmark",
    chinese_name: "丹麦",
    country_code: "DK",
    phone_code: "45",
  },
  {
    english_name: "Dominica",
    chinese_name: "多米尼加",
    country_code: "DM",
    phone_code: "1767",
  },
  {
    english_name: "dominican republic",
    chinese_name: "多米尼加共和国",
    country_code: "DO",
    phone_code: "1809",
  },
  {
    english_name: "Algeria",
    chinese_name: "阿尔及利亚",
    country_code: "DZ",
    phone_code: "213",
  },
  {
    english_name: "Ecuador",
    chinese_name: "厄瓜多尔",
    country_code: "EC",
    phone_code: "593",
  },
  {
    english_name: "Estonia",
    chinese_name: "爱沙尼亚",
    country_code: "EE",
    phone_code: "372",
  },
  {
    english_name: "Egypt",
    chinese_name: "埃及",
    country_code: "EG",
    phone_code: "20",
  },
  {
    english_name: "Eritrea",
    chinese_name: "厄立特里亚",
    country_code: "ER",
    phone_code: "291",
  },
  {
    english_name: "Spain",
    chinese_name: "西班牙",
    country_code: "ES",
    phone_code: "34",
  },
  {
    english_name: "Ethiopia",
    chinese_name: "埃塞俄比亚",
    country_code: "ET",
    phone_code: "251",
  },
  {
    english_name: "Finland",
    chinese_name: "芬兰",
    country_code: "FI",
    phone_code: "358",
  },
  {
    english_name: "Fiji",
    chinese_name: "斐济",
    country_code: "FJ",
    phone_code: "679",
  },
  {
    english_name: "Micronesia",
    chinese_name: "密克罗尼西亚",
    country_code: "FM",
    phone_code: "691",
  },
  {
    english_name: "Faroe Islands",
    chinese_name: "法罗群岛",
    country_code: "FO",
    phone_code: "298",
  },
  {
    english_name: "France",
    chinese_name: "法国",
    country_code: "FR",
    phone_code: "33",
  },
  {
    english_name: "Gabon",
    chinese_name: "加蓬",
    country_code: "GA",
    phone_code: "241",
  },
  {
    english_name: "United Kingdom",
    chinese_name: "英国",
    country_code: "GB",
    phone_code: "44",
  },
  {
    english_name: "Grenada",
    chinese_name: "格林纳达",
    country_code: "GD",
    phone_code: "1473",
  },
  {
    english_name: "Georgia",
    chinese_name: "格鲁吉亚",
    country_code: "GE",
    phone_code: "995",
  },
  {
    english_name: "French Guiana",
    chinese_name: "法属圭亚那",
    country_code: "GF",
    phone_code: "594",
  },
  {
    english_name: "Ghana",
    chinese_name: "加纳",
    country_code: "GH",
    phone_code: "233",
  },
  {
    english_name: "Gibraltar",
    chinese_name: "直布罗陀",
    country_code: "GI",
    phone_code: "350",
  },
  {
    english_name: "Greenland",
    chinese_name: "格陵兰岛",
    country_code: "GL",
    phone_code: "299",
  },
  {
    english_name: "Gambia",
    chinese_name: "冈比亚",
    country_code: "GM",
    phone_code: "220",
  },
  {
    english_name: "Guinea",
    chinese_name: "几内亚",
    country_code: "GN",
    phone_code: "224",
  },
  {
    english_name: "Guadeloupe",
    chinese_name: "瓜德罗普岛",
    country_code: "GP",
    phone_code: "590",
  },
  {
    english_name: "Equatorial Guinea",
    chinese_name: "赤道几内亚",
    country_code: "GQ",
    phone_code: "240",
  },
  {
    english_name: "Greece",
    chinese_name: "希腊",
    country_code: "GR",
    phone_code: "30",
  },
  {
    english_name: "Guatemala",
    chinese_name: "瓜地马拉",
    country_code: "GT",
    phone_code: "502",
  },
  {
    english_name: "Guam",
    chinese_name: "关岛",
    country_code: "GU",
    phone_code: "1671",
  },
  {
    english_name: "Guinea-Bissau",
    chinese_name: "几内亚比绍共和国",
    country_code: "GW",
    phone_code: "245",
  },
  {
    english_name: "Guyana",
    chinese_name: "圭亚那",
    country_code: "GY",
    phone_code: "592",
  },
  {
    english_name: "Hong Kong",
    chinese_name: "中国香港",
    country_code: "HK",
    phone_code: "852",
  },
  {
    english_name: "Honduras",
    chinese_name: "洪都拉斯",
    country_code: "HN",
    phone_code: "504",
  },
  {
    english_name: "Croatia",
    chinese_name: "克罗地亚",
    country_code: "HR",
    phone_code: "385",
  },
  {
    english_name: "Haiti",
    chinese_name: "海地",
    country_code: "HT",
    phone_code: "509",
  },
  {
    english_name: "Hungary",
    chinese_name: "匈牙利",
    country_code: "HU",
    phone_code: "36",
  },
  {
    english_name: "Indonesia",
    chinese_name: "印度尼西亚",
    country_code: "ID",
    phone_code: "62",
  },
  {
    english_name: "Ireland",
    chinese_name: "爱尔兰",
    country_code: "IE",
    phone_code: "353",
  },
  {
    english_name: "Israel",
    chinese_name: "以色列",
    country_code: "IL",
    phone_code: "972",
  },
  {
    english_name: "India",
    chinese_name: "印度",
    country_code: "IN",
    phone_code: "91",
  },
  {
    english_name: "Iraq",
    chinese_name: "伊拉克",
    country_code: "IQ",
    phone_code: "964",
  },
  {
    english_name: "Iran",
    chinese_name: "伊朗",
    country_code: "IR",
    phone_code: "98",
  },
  {
    english_name: "Iceland",
    chinese_name: "冰岛",
    country_code: "IS",
    phone_code: "354",
  },
  {
    english_name: "Italy",
    chinese_name: "意大利",
    country_code: "IT",
    phone_code: "39",
  },
  {
    english_name: "Jamaica",
    chinese_name: "牙买加",
    country_code: "JM",
    phone_code: "1876",
  },
  {
    english_name: "Jordan",
    chinese_name: "约旦",
    country_code: "JO",
    phone_code: "962",
  },
  {
    english_name: "Japan",
    chinese_name: "日本",
    country_code: "JP",
    phone_code: "81",
  },
  {
    english_name: "Kenya",
    chinese_name: "肯尼亚",
    country_code: "KE",
    phone_code: "254",
  },
  {
    english_name: "Kyrgyzstan",
    chinese_name: "吉尔吉斯斯坦",
    country_code: "KG",
    phone_code: "996",
  },
  {
    english_name: "Cambodia",
    chinese_name: "柬埔寨",
    country_code: "KH",
    phone_code: "855",
  },
  {
    english_name: "Kiribati",
    chinese_name: "基里巴斯",
    country_code: "KI",
    phone_code: "686",
  },
  {
    english_name: "Comoros",
    chinese_name: "科摩罗",
    country_code: "KM",
    phone_code: "269",
  },
  {
    english_name: "Saint Kitts and Nevis",
    chinese_name: "圣基茨和尼维斯",
    country_code: "KN",
    phone_code: "1869",
  },
  {
    english_name: "Korea Democratic Rep.",
    chinese_name: "朝鲜",
    country_code: "KP",
    phone_code: "850",
  },
  {
    english_name: "South Korea",
    chinese_name: "韩国",
    country_code: "KR",
    phone_code: "82",
  },
  {
    english_name: "Kuwait",
    chinese_name: "科威特",
    country_code: "KW",
    phone_code: "965",
  },
  {
    english_name: "Cayman Islands",
    chinese_name: "开曼群岛",
    country_code: "KY",
    phone_code: "1345",
  },
  {
    english_name: "Kazakhstan",
    chinese_name: "哈萨克斯坦",
    country_code: "KZ",
    phone_code: "7",
  },
  {
    english_name: "Laos",
    chinese_name: "老挝",
    country_code: "LA",
    phone_code: "856",
  },
  {
    english_name: "Lebanon",
    chinese_name: "黎巴嫩",
    country_code: "LB",
    phone_code: "961",
  },
  {
    english_name: "Saint Lucia",
    chinese_name: "圣露西亚",
    country_code: "LC",
    phone_code: "1758",
  },
  {
    english_name: "Liechtenstein",
    chinese_name: "列支敦士登",
    country_code: "LI",
    phone_code: "423",
  },
  {
    english_name: "Sri Lanka",
    chinese_name: "斯里兰卡",
    country_code: "LK",
    phone_code: "94",
  },
  {
    english_name: "Liberia",
    chinese_name: "利比里亚",
    country_code: "LR",
    phone_code: "231",
  },
  {
    english_name: "Lesotho",
    chinese_name: "莱索托",
    country_code: "LS",
    phone_code: "266",
  },
  {
    english_name: "Lithuania",
    chinese_name: "立陶宛",
    country_code: "LT",
    phone_code: "370",
  },
  {
    english_name: "Luxembourg",
    chinese_name: "卢森堡",
    country_code: "LU",
    phone_code: "352",
  },
  {
    english_name: "Latvia",
    chinese_name: "拉脱维亚",
    country_code: "LV",
    phone_code: "371",
  },
  {
    english_name: "Libya",
    chinese_name: "利比亚",
    country_code: "LY",
    phone_code: "218",
  },
  {
    english_name: "Morocco",
    chinese_name: "摩洛哥",
    country_code: "MA",
    phone_code: "212",
  },
  {
    english_name: "Monaco",
    chinese_name: "摩纳哥",
    country_code: "MC",
    phone_code: "377",
  },
  {
    english_name: "Moldova",
    chinese_name: "摩尔多瓦",
    country_code: "MD",
    phone_code: "373",
  },
  {
    english_name: "Montenegro",
    chinese_name: "黑山",
    country_code: "ME",
    phone_code: "382",
  },
  {
    english_name: "Madagascar",
    chinese_name: "马达加斯加",
    country_code: "MG",
    phone_code: "261",
  },
  {
    english_name: "Marshall Islands",
    chinese_name: "马绍尔群岛",
    country_code: "MH",
    phone_code: "692",
  },
  {
    english_name: "Macedonia",
    chinese_name: "马其顿",
    country_code: "MK",
    phone_code: "389",
  },
  {
    english_name: "Mali",
    chinese_name: "马里",
    country_code: "ML",
    phone_code: "223",
  },
  {
    english_name: "Myanmar",
    chinese_name: "缅甸",
    country_code: "MM",
    phone_code: "95",
  },
  {
    english_name: "Mongolia",
    chinese_name: "蒙古",
    country_code: "MN",
    phone_code: "976",
  },
  {
    english_name: "Macau",
    chinese_name: "中国澳门",
    country_code: "MO",
    phone_code: "853",
  },
  {
    english_name: "Mauritania",
    chinese_name: "毛里塔尼亚",
    country_code: "MR",
    phone_code: "222",
  },
  {
    english_name: "Montserrat",
    chinese_name: "蒙特塞拉特岛",
    country_code: "MS",
    phone_code: "1664",
  },
  {
    english_name: "Malta",
    chinese_name: "马耳他",
    country_code: "MT",
    phone_code: "356",
  },
  {
    english_name: "Mauritius",
    chinese_name: "毛里求斯",
    country_code: "MU",
    phone_code: "230",
  },
  {
    english_name: "Maldives",
    chinese_name: "马尔代夫",
    country_code: "MV",
    phone_code: "960",
  },
  {
    english_name: "Malawi",
    chinese_name: "马拉维",
    country_code: "MW",
    phone_code: "265",
  },
  {
    english_name: "Mexico",
    chinese_name: "墨西哥",
    country_code: "MX",
    phone_code: "52",
  },
  {
    english_name: "Malaysia",
    chinese_name: "马来西亚",
    country_code: "MY",
    phone_code: "60",
  },
  {
    english_name: "Mozambique",
    chinese_name: "莫桑比克",
    country_code: "MZ",
    phone_code: "258",
  },
  {
    english_name: "Namibia",
    chinese_name: "纳米比亚",
    country_code: "NA",
    phone_code: "264",
  },
  {
    english_name: "New Caledonia",
    chinese_name: "新喀里多尼亚",
    country_code: "NC",
    phone_code: "687",
  },
  {
    english_name: "Niger",
    chinese_name: "尼日尔",
    country_code: "NE",
    phone_code: "227",
  },
  {
    english_name: "Nigeria",
    chinese_name: "尼日利亚",
    country_code: "NG",
    phone_code: "234",
  },
  {
    english_name: "Nicaragua",
    chinese_name: "尼加拉瓜",
    country_code: "NI",
    phone_code: "505",
  },
  {
    english_name: "Netherlands",
    chinese_name: "荷兰",
    country_code: "NL",
    phone_code: "31",
  },
  {
    english_name: "Norway",
    chinese_name: "挪威",
    country_code: "NO",
    phone_code: "47",
  },
  {
    english_name: "Nepal",
    chinese_name: "尼泊尔",
    country_code: "NP",
    phone_code: "977",
  },
  {
    english_name: "Nauru",
    chinese_name: "拿鲁岛",
    country_code: "NR",
    phone_code: "674",
  },
  {
    english_name: "New Zealand",
    chinese_name: "新西兰",
    country_code: "NZ",
    phone_code: "64",
  },
  {
    english_name: "Oman",
    chinese_name: "阿曼",
    country_code: "OM",
    phone_code: "968",
  },
  {
    english_name: "Panama",
    chinese_name: "巴拿马",
    country_code: "PA",
    phone_code: "507",
  },
  {
    english_name: "Peru",
    chinese_name: "秘鲁",
    country_code: "PE",
    phone_code: "51",
  },
  {
    english_name: "French Polynesia",
    chinese_name: "法属波利尼西亚",
    country_code: "PF",
    phone_code: "689",
  },
  {
    english_name: "Papua New Guinea",
    chinese_name: "巴布亚新几内亚",
    country_code: "PG",
    phone_code: "675",
  },
  {
    english_name: "Philippines",
    chinese_name: "菲律宾",
    country_code: "PH",
    phone_code: "63",
  },
  {
    english_name: "Pakistan",
    chinese_name: "巴基斯坦",
    country_code: "PK",
    phone_code: "92",
  },
  {
    english_name: "Poland",
    chinese_name: "波兰",
    country_code: "PL",
    phone_code: "48",
  },
  {
    english_name: "Saint Pierreand Miquelon",
    chinese_name: "圣彼埃尔和密克隆岛",
    country_code: "PM",
    phone_code: "508",
  },
  {
    english_name: "Puerto Rico",
    chinese_name: "波多黎各",
    country_code: "PR",
    phone_code: "1787",
  },
  {
    english_name: "Portugal",
    chinese_name: "葡萄牙",
    country_code: "PT",
    phone_code: "351",
  },
  {
    english_name: "Palau",
    chinese_name: "帕劳",
    country_code: "PW",
    phone_code: "680",
  },
  {
    english_name: "Paraguay",
    chinese_name: "巴拉圭",
    country_code: "PY",
    phone_code: "595",
  },
  {
    english_name: "Qatar",
    chinese_name: "卡塔尔",
    country_code: "QA",
    phone_code: "974",
  },
  {
    english_name: "Réunion Island",
    chinese_name: "留尼汪",
    country_code: "RE",
    phone_code: "262",
  },
  {
    english_name: "Romania",
    chinese_name: "罗马尼亚",
    country_code: "RO",
    phone_code: "40",
  },
  {
    english_name: "Serbia",
    chinese_name: "塞尔维亚",
    country_code: "RS",
    phone_code: "381",
  },
  {
    english_name: "Russia",
    chinese_name: "俄罗斯",
    country_code: "RU",
    phone_code: "7",
  },
  {
    english_name: "Rwanda",
    chinese_name: "卢旺达",
    country_code: "RW",
    phone_code: "250",
  },
  {
    english_name: "Saudi Arabia",
    chinese_name: "沙特阿拉伯",
    country_code: "SA",
    phone_code: "966",
  },
  {
    english_name: "Solomon Islands",
    chinese_name: "所罗门群岛",
    country_code: "SB",
    phone_code: "677",
  },
  {
    english_name: "Seychelles",
    chinese_name: "塞舌尔",
    country_code: "SC",
    phone_code: "248",
  },
  {
    english_name: "Sudan",
    chinese_name: "苏丹",
    country_code: "SD",
    phone_code: "249",
  },
  {
    english_name: "Sweden",
    chinese_name: "瑞典",
    country_code: "SE",
    phone_code: "46",
  },
  {
    english_name: "Singapore",
    chinese_name: "新加坡",
    country_code: "SG",
    phone_code: "65",
  },
  {
    english_name: "Slovenia",
    chinese_name: "斯洛文尼亚",
    country_code: "SI",
    phone_code: "386",
  },
  {
    english_name: "Slovakia",
    chinese_name: "斯洛伐克",
    country_code: "SK",
    phone_code: "421",
  },
  {
    english_name: "Sierra Leone",
    chinese_name: "塞拉利昂",
    country_code: "SL",
    phone_code: "232",
  },
  {
    english_name: "San Marino",
    chinese_name: "圣马力诺",
    country_code: "SM",
    phone_code: "378",
  },
  {
    english_name: "Senegal",
    chinese_name: "塞内加尔",
    country_code: "SN",
    phone_code: "221",
  },
  {
    english_name: "Somalia",
    chinese_name: "索马里",
    country_code: "SO",
    phone_code: "252",
  },
  {
    english_name: "Suriname",
    chinese_name: "苏里南",
    country_code: "SR",
    phone_code: "597",
  },
  {
    english_name: "Sao Tome and Principe",
    chinese_name: "圣多美和普林西比",
    country_code: "ST",
    phone_code: "239",
  },
  {
    english_name: "ElSalvador",
    chinese_name: "萨尔瓦多",
    country_code: "SV",
    phone_code: "503",
  },
  {
    english_name: "Syria",
    chinese_name: "叙利亚",
    country_code: "SY",
    phone_code: "963",
  },
  {
    english_name: "Swaziland",
    chinese_name: "斯威士兰",
    country_code: "SZ",
    phone_code: "268",
  },
  {
    english_name: "Turksand Caicos Islands",
    chinese_name: "特克斯和凯科斯群岛",
    country_code: "TC",
    phone_code: "1649",
  },
  {
    english_name: "Chad",
    chinese_name: "乍得",
    country_code: "TD",
    phone_code: "235",
  },
  {
    english_name: "Togo",
    chinese_name: "多哥",
    country_code: "TG",
    phone_code: "228",
  },
  {
    english_name: "Thailand",
    chinese_name: "泰国",
    country_code: "TH",
    phone_code: "66",
  },
  {
    english_name: "Tajikistan",
    chinese_name: "塔吉克斯坦",
    country_code: "TJ",
    phone_code: "992",
  },
  {
    english_name: "East Timor",
    chinese_name: "东帝汶",
    country_code: "TL",
    phone_code: "670",
  },
  {
    english_name: "Turkmenistan",
    chinese_name: "土库曼斯坦",
    country_code: "TM",
    phone_code: "993",
  },
  {
    english_name: "Tunisia",
    chinese_name: "突尼斯",
    country_code: "TN",
    phone_code: "216",
  },
  {
    english_name: "Tonga",
    chinese_name: "汤加",
    country_code: "TO",
    phone_code: "676",
  },
  {
    english_name: "Turkey",
    chinese_name: "土耳其",
    country_code: "TR",
    phone_code: "90",
  },
  {
    english_name: "Trinidadand Tobago",
    chinese_name: "特立尼达和多巴哥",
    country_code: "TT",
    phone_code: "1868",
  },
  {
    english_name: "Taiwan",
    chinese_name: "中国台湾",
    country_code: "TW",
    phone_code: "886",
  },
  {
    english_name: "Tanzania",
    chinese_name: "坦桑尼亚",
    country_code: "TZ",
    phone_code: "255",
  },
  {
    english_name: "Ukraine",
    chinese_name: "乌克兰",
    country_code: "UA",
    phone_code: "380",
  },
  {
    english_name: "Uganda",
    chinese_name: "乌干达",
    country_code: "UG",
    phone_code: "256",
  },
  {
    english_name: "United States",
    chinese_name: "美国",
    country_code: "US",
    phone_code: "1",
  },
  {
    english_name: "Uruguay",
    chinese_name: "乌拉圭",
    country_code: "UY",
    phone_code: "598",
  },
  {
    english_name: "Uzbekistan",
    chinese_name: "乌兹别克斯坦",
    country_code: "UZ",
    phone_code: "998",
  },
  {
    english_name: "Saint Vincent and The Grenadines",
    chinese_name: "圣文森特和格林纳丁斯",
    country_code: "VC",
    phone_code: "1784",
  },
  {
    english_name: "Venezuela",
    chinese_name: "委内瑞拉",
    country_code: "VE",
    phone_code: "58",
  },
  {
    english_name: "VirginIslands,British",
    chinese_name: "英属处女群岛",
    country_code: "VG",
    phone_code: "1284",
  },
  {
    english_name: "Vietnam",
    chinese_name: "越南",
    country_code: "VN",
    phone_code: "84",
  },
  {
    english_name: "Vanuatu",
    chinese_name: "瓦努阿图",
    country_code: "VU",
    phone_code: "678",
  },
  {
    english_name: "Samoa",
    chinese_name: "萨摩亚",
    country_code: "WS",
    phone_code: "685",
  },
  {
    english_name: "Yemen",
    chinese_name: "也门",
    country_code: "YE",
    phone_code: "967",
  },
  {
    english_name: "Mayotte",
    chinese_name: "马约特",
    country_code: "YT",
    phone_code: "269",
  },
  {
    english_name: "South Africa",
    chinese_name: "南非",
    country_code: "ZA",
    phone_code: "27",
  },
  {
    english_name: "Zambia",
    chinese_name: "赞比亚",
    country_code: "ZM",
    phone_code: "260",
  },
  {
    english_name: "Zimbabwe",
    chinese_name: "津巴布韦",
    country_code: "ZW",
    phone_code: "263",
  },
];

// 政治面貌
export const politicalList = [
  "团员",
  "中共党员(含预备党员)",
  "民主党派",
  "无党派人士",
  "群众",
];

export const getNationPhoneNumber = (value) => {
  return nationPhoneNumber.filter((v) => v.chinese_name == value)[0].phone_code;
};

// 获取工作语言名称
export const getWorkPeriodName = (value) => {
  return workPeriod.filter((v) => v.value == value)[0].label;
};
export const getEducationName = function (arr, type) {
  try {
    arr = JSON.parse(arr);
  } catch {
    () => { };
  }
  let nameList = [];
  arr.forEach((vv) => {
    let name = "";
    educationOptions.map((item) => {
      if (vv != null && Number(item.value) === Number(vv[0])) {
        name += item.label;
        if (item.children && Array.isArray(item.children) && !type) {
          item.children.map((iten) => {
            if (Number(iten.value) === Number(vv[1])) {
              name += "/" + iten.label;
            }
          });
        }
      }
    });
    nameList.push(name);
  });
  if (type) return nameList[0];
  return nameList;
};
